<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>历史对局</title>
    <link rel="stylesheet" href="css/style.css">
</head>


<body>
 <div id="box">
	<div id="centent">
		<canvas id="canvas" width="450" height="450"></canvas>
	</div>
    <button id="prev">上一步</button>
	<button id="next">下一步</button>
    <button id="remake">重置</button>
	<div id="winner">
		<div class="state-chess Bchess"></div>
		<div class="chessName"></div>
	</div>
</div>
    <script src="js/script.js"></script>
    <script src="js/jquery-2.1.0.min.js"></script>
    <script>
        
        let idArray = window.location.search.split('=');
        // 获取路由的参数room_id
        let assetId = idArray[1];
        window.onload=function(){
            game.start(assetId);
            
             }
        game.drawLine();
        game.pprev.addEventListener("mousedown", game.pv);
        game.nnext.addEventListener("mousedown",game.nx);
        game.rremake.addEventListener("mousedown",game.re);
    </script>
</body>
</html>